public final class InheritTest extends Test{
    int n =  50;
    InheritTest(){
        super(1);
    }

    //overwrite
    int getN(){
//        return this.n;
        return super.n;
    }

    public static void main(String[] args) {
        InheritTest obj = new InheritTest();
        System.out.println(obj.getN());

    }
}

//class Aaa extends InheritTest{} //cannot inherit final InheritTest
